package com.sushi.service.impl;

import com.sushi.service.AopService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class AopServiceImpl implements AopService {
    @Override
    public void m1() {
        System.out.println("AopService_m1");
    }

    @Override
    public void m2() {
        System.out.println("AopService_m2");
    }

    @Override
    public void throwTry() {
        throw new ArithmeticException("自己抛的");
    }

    @Override
    public ArrayList<Integer> returnTry() {
        System.out.println("返回一个ArrayList");
        ArrayList<Integer> arr = new ArrayList<>();
        arr.add(1);
        arr.add(3);
        arr.add(5);
        arr.add(7);
        return arr;
    }


}
